package ru.fadeev.crammer.data;


/**
 * WordEditListRecord class used by WordEditList class to keep information
 * about word and what changes to word will be done
 * @author Konstantin Fadeyev
 *
 */
public class WordEditListRecord {
	public static final int NO_CHANGE = 0;
	public static final int UPDATED = 1;
	public static final int INSERTED = 2;
	public static final int DELETED = 3;
	
	/**
	 * Represent change that will be done with word. One of NO_CHANGE, UPDATED,
	 * INSERTED, DELETED
	 */
	public int status;
	
	/**
	 * Word in Sheet
	 */
	public WordRecord wordRecord;
	
	/**
	 * Index of Word in Sheet
	 */
	public int index;

	/**
	 * @return the status
	 */
	protected int getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	protected void setStatus(int status) {
		this.status = status;
	}

	/**
	 * @return the wordRecord
	 */
	public WordRecord getWordRecord() {
		return wordRecord;
	}

	/**
	 * @param wordRecord the wordRecord to set
	 */
	protected void setWordRecord(WordRecord wordRecord) {
		this.wordRecord = wordRecord;
	}

	/**
	 * @return the index
	 */
	public int getIndex() {
		return index;
	}

	/**
	 * @param index the index to set
	 */
	protected void setIndex(int index) {
		this.index = index;
	}
}
